const jsdoc = require('swagger-jsdoc')
const config = require('./index')
module.exports = jsdoc({
  swaggerDefinition: {
    info: {
      title: 'API文档',
      version: '1.0.0'
    },
    host: `localhost:${config.port}`,
    basePath: '/'
  },
  apis: ['./src/controller/*.js']
})
